<template>
  <div>
    <h2>组件传值</h2>
    <GoodList :uname="username" :age="age" sex="男"></GoodList>
    <GoodList :uname="username" :age="age" sex="男"></GoodList>
    <GoodList :uname="username" :age="age" sex="男"></GoodList>
  </div>
</template>

<script>
import GoodList from "@/components/GoodList.vue";
export default {
  data(){
    return {
      username:'lisi',
      age:30
    }
  },
  // 注册组件
  components: {
    GoodList,
  },
};
</script>

<style></style>